package com.ec.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.ec.core.annotation.Table;
import com.ec.core.annotation.Field;

@Table(name = "t_product")
public class Product implements java.io.Serializable {

	private int ID;
	private String productName;
	private String spec;
	private int dirId;
	private String barCode;
	private int normalSize;
	private int demageSize;
	private String unit;
	private String postCode;
	private int purchasePrice;
	private int salePrice;
	private int cost;
	private int status;
	private Date createTime;

	public Product() {

	}

	@Field(name = "ID", pk = true,readonly=true)
	public int getID() {
		return ID;
	}

	public void setID(int id) {
		ID = id;
	}

	@Field(name = "Productname")
	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	@Field(name = "Spec")
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	@Field(name = "dirid")
	public int getDirId() {
		return dirId;
	}

	public void setDirId(int dirId) {
		this.dirId = dirId;
	}

	@Field(name = "Barcode")
	public String getBarCode() {
		return barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	@Field(name = "normalSize")
	public int getNormalSize() {
		return normalSize;
	}

	public void setNormalSize(int normalSize) {
		this.normalSize = normalSize;
	}

	@Field(name = "Demagesize")
	public int getDemageSize() {
		return demageSize;
	}

	public void setDemageSize(int demageSize) {
		this.demageSize = demageSize;
	}

	@Field(name = "unit")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Field(name = "Postcode")
	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Field(name = "Purchaseprice")
	public int getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(int purchasePrice) {
		this.purchasePrice = purchasePrice;
	}

	@Field(name = "Saleprice")
	public int getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(int salePrice) {
		this.salePrice = salePrice;
	}

	@Field(name = "cost")
	public int getCost() {
		return cost;
	}

	public void setCost(int cost) {
		this.cost = cost;
	}

	@Field(name = "Status")
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Field(name = "Createtime")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
